package cn.zut.hhr.class1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {
    @GetMapping("/login")
    public String toLogin(){
        return "login";
    }
    @GetMapping("/list")
    @ResponseBody
    public String list(){
        return "list";
    }
    @GetMapping("/add")
    @ResponseBody
    public String add(){
        return "add";
    }
    @GetMapping("/del")
    @ResponseBody
    public String del(){
        return "del";
    }
}